<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="/page" method="get">
    <input type="text" name="name" placeholder="输入姓名">
    <input type="text" name="age" placeholder="输入年龄">
    <input type="submit" value="提交">
    <table>
        <tr>
            <td>id</td>
            <td>name</td>
            <td>sex</td>
            <td>age</td>
            <td>address</td>
            <td>操作</td>
        </tr>
        <tr th:each="student:${students.records}">
            <td th:text="${student.id}"></td>
            <td th:text="${student.name}"></td>
            <td th:text="${student.sex}"></td>
            <td th:text="${student.age}"></td>
            <td th:text="${student.address}"></td>
            <td>
                <a th:href="@{/del(id=${student.id})}">删除</a>
            </td>
        </tr>
    </table>

    <a href="/page?current=1">首页</a>
    <a th:href="@{/page(current=${students.getCurrent()-1})}">上一页</a>
    <a th:href="@{/page(current=${students.getCurrent()+1})}">下一页</a>
    <a th:href="@{/page(current=${students.getPages()})}">尾页</a>
</form>

</body>
</html>